package com.example.restful;


import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhonghui.zhou
 * @since 2022-07-23
 */
@RestController
@RequestMapping("/user")
public class UserController {


    @RequestMapping(value = "/query/xml",method = RequestMethod.POST,produces = {"application/xml","application/json"},consumes = "application/xml")
    public List<User> queryAllUsersByIds(){
        List<User> list=Arrays.asList(new User(1,"zzh1","123"),new User(2,"zzh2","123"),new User(3,"zzh3","123"));
        return list;
    }




}
